import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
// 导入仓库实例
import store from '@/store/index.js'
Vue.use(uView)
// 导入请求实例
import '@/utils/request.js'
uni.$http = uni.$u.http
// 页面中通过  uni.$http 来实现请求
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App,
    store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif